package com.group4.travel.common;

/**
 * @author : sean
 * @version V1.0
 * @Project: Homework_day16
 * @Package com.sean.common
 * @date Date : 2021年08月04日 21:23
 * @Description: TODO
 */

public enum ResponseCode {
    //带小写转换 ctrl+shift+u
    SUCCESS(200,"成功"),
    ERROR(500,"系统内部错误");

    private Integer code;
    private String desc;

    ResponseCode(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
